#include "path.h"
#include "cstring"

pathshow::pathshow()
{
    starcity="";
    overcity="";
    G.arcnum = 10;
    G.vexnum = 9;

    G.places[0]="仿古商业街";mp["仿古商业街"]=0;
    G.places[1]="实验实训大楼";mp["实验实训大楼"]=1;
    G.places[2]="体育馆";mp["体育馆"]=2;
    G.places[3]="五号教学楼";mp["五号教学楼"]=3;
    G.places[4]="学海悟道";mp["学海悟道"]=4;
    G.places[5]="图书馆";mp["图书馆"]=5;
    G.places[6]="三号教学楼";mp["三号教学楼"]=6;
    G.places[7]="综合楼";mp["综合楼"]=7;
    G.places[8]="艺体楼";mp["艺体楼"]=8;


    List.push_back({0,{4,40}});List.push_back({0,{7,85}});
    List.push_back({4,{7,58}});List.push_back({7,{1,70}});
    List.push_back({1,{3,40}});List.push_back({0,{2,200}});
    List.push_back({2,{6,109}});List.push_back({2,{8,123}});
    List.push_back({8,{5,89}});List.push_back({6,{5,20}});
//List.push_back({5,{10,295}});//List.push_back({6,{7,92}});
//    List.push_back({18,{14,323}});List.push_back({7,{12,180}});
//    List.push_back({7,{10,360}});List.push_back({7,{9,178}});
//    List.push_back({8,{11,123}});List.push_back({8,{9,70}});
//    List.push_back({9,{12,80}});List.push_back({9,{13,138}});
//    List.push_back({10,{12,330}});List.push_back({11,{13,72}});
//    List.push_back({12,{13,136}});List.push_back({12,{14,79}});
//    List.push_back({13,{15,128}});List.push_back({14,{17,284}});
//    List.push_back({14,{16,395}});List.push_back({16,{17,320}});
//    List.push_back({17,{20,210}});List.push_back({17,{18,220}});
//    List.push_back({18,{19,188}});List.push_back({19,{21,180}});

    for(int i=0;i<=8;i++){
        for(int j=0;j<=8;j++){
            G.arcs[i][j].path=1000;
        }
    }
    for(auto x:List){
        int nw=x.first,nx=x.second.first,dis=x.second.second;
        G.arcs[nw][nx].path=G.arcs[nx][nw].path=dis;
    }

}
pathshow::~pathshow()
{

}
